import request from '@/utils/request'

// 查询分享项目列表
export function listShare(query) {
  return request({
    url: '/city/share/list',
    method: 'get',
    params: query
  })
}

// 查询分享项目详细
export function getShare(shareId) {
  return request({
    url: '/city/share/' + shareId,
    method: 'get'
  })
}

// 新增分享项目
export function addShare(data) {
  return request({
    url: '/city/share',
    method: 'post',
    data: data
  })
}

// 修改分享项目
export function updateShare(data) {
  return request({
    url: '/city/share',
    method: 'put',
    data: data
  })
}

// 删除分享项目
export function delShare(shareId) {
  return request({
    url: '/city/share/' + shareId,
    method: 'delete'
  })
}
